package com.aloda.entity;

import com.aloda.enums.RecordCategory;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 页面访问记录表
 * @TableName page_record
 */
@TableName(value ="page_record")
@Data
public class PageRecord implements Serializable {
    /**
     * 主键 id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 记录类型
     */
    private RecordCategory category;

    /**
     * 数量
     */
    private Long nums;

    /**
     * 记录时间
     */
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}